package com.dmyang.p2pchat.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.IntDef;
import android.support.annotation.Nullable;

/**
 * 暂时不使用
 * Created by brss on 2017/11/3.
 */

public class NetListenService extends Service {
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onCreate() {
        System.out.println("服务创建");
        super.onCreate();
    }
    //相当与Activity的OnStart方法
    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        System.out.println("服务start");
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public void onDestroy() {
        System.out.println("服务销毁");
        super.onDestroy();
    }
}
